eulers theorem in cryptography